eulers theorem in cryptography